package org.breathe.dynamic.thread.pool.core.event;

import org.breathe.dynamic.thread.pool.core.thread.BreatheDtpExecutor;
import org.breathe.thread.pool.common.entity.ThreadPoolExecutorProperties;
import org.springframework.context.ApplicationEvent;

/**
 * @author: breathe
 * @createTime: 2025-06-27
 */
public class AlarmEvent extends ApplicationEvent {
    private final BreatheDtpExecutor breatheDtpExecutor;
    private final ThreadPoolExecutorProperties threadPoolExecutorProperties;

    public AlarmEvent(Object source, BreatheDtpExecutor breatheDtpExecutor, ThreadPoolExecutorProperties threadPoolExecutorProperties) {
        super(source);
        this.breatheDtpExecutor = breatheDtpExecutor;
        this.threadPoolExecutorProperties = threadPoolExecutorProperties;
    }
    public BreatheDtpExecutor getBreatheDtpExecutor() {
        return breatheDtpExecutor;
    }
    public ThreadPoolExecutorProperties getThreadPoolExecutorProperties() {
        return threadPoolExecutorProperties;
    }
}
